// 列表--搜索字段
export const indexSearchData = [
  {
    key: 'deliveryProductName',
    title: '配送商',
    type: 'select',
    options: [],
    attr: {
      placeholder: '请输入',
      filterable: true,
      remote: true
    }
  },
  {
    key: 'provinceProductCodeReturn',
    title: 'M平台退货单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'hospitalRetreatIdReturn',
    title: '医院退货订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'provinceProductCode',
    title: 'M平台采购订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'time',
    title: '下单时间',
    type: 'time',
    fieldname: ['startDate', 'endDate'],
    attr: {
      style: 'width:533px !important;',
      class: 'daterange',
      type: 'daterange',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'default-time': ['00:00:00', '23:59:59']
    }
  },
  {
    key: 'typeReturn',
    title: '退货类型',
    type: 'select',
    attr: {
      placeholder: '请选择'
    },
    options: [{
      label: '全部',
      value: 0
    },
    {
      label: '批发采购质检退货',
      value: 1
    },
    {
      label: '寄存需求质检退货',
      value: 2
    }
    ]
  }
]
// 列表页-tab
export const indexTabsArr = [
  { lab: '全部', val: 'null' },
  { lab: '待收货', val: 1 },
  { lab: '已完成', val: 2 }
]

// 列表--列表表头
export const indexTableColumns = [
  { prop: 'provinceProductCodeReturn', label: 'M平台退货订单编号', width: 170, showTooltipWhenOverflow: true },
  { prop: 'hospitalRetreatIdReturn', label: '医院退货订单编号', width: 170, showTooltipWhenOverflow: true },
  { prop: 'provinceProductCode', label: 'M平台订单编号', width: 170, showTooltipWhenOverflow: true },
  { prop: 'productSpecCount', label: '退货品规数', minWidth: 100, showTooltipWhenOverflow: true },
  { prop: 'returnNum', label: '退货数量', width: 90 },
  { prop: 'deliveryProductName', label: '配送商', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'typeReturn', label: '退货类型', width: 90 },
  { prop: 'moneyReturn', label: '退货金额', width: 130 },
  { prop: 'orderStatus', label: '订单状态', width: 90 },
  { prop: 'createdAt', label: '下单时间', width: 160 },
  { prop: 'action', label: '操作', width: 100, fixed: 'right' }
]

// 详情表单内容
export const baseInfoDic = [
  { key: 'provinceProductCodeReturn', title: 'M平台退货订单编号' },
  { key: 'hospitalRetreatIdReturn', title: '医院退货订单编号' },
  { key: 'provinceProductCode', title: '采购订单编号' },
  { key: 'orderStatus', title: '订单状态' },
  { key: 'createdAt', title: ' 订单提交时间' },
  { key: 'deliveryProductName', title: '配送商' },
  { key: 'productSpecCount', title: '品规数' },
  { key: 'province', title: '退货地址' },
  { key: 'userName', title: '联系人' },
  { key: 'userPhone', title: '联系电话' },
  { key: 'resone', title: '退货原因' }
]

// 详情 -  表格
export const detailColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'checkReturnItemCode', label: '订单明细编号', width: 150 },
  { prop: 'hospitalProductCode', label: '配送商产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '配送商产品名称', width: 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号（或备案号）', width: 170 },
  { prop: 'price', label: '单价', width: 150 },
  { prop: 'awaitReceiveNum', label: '退货数量/单位', width: 150 },
  { prop: 'detailAmount', label: '小计金额', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 }
]

// 订单状态
export const statusAttr = {
  1: '待收货',
  2: '已完成'
}

// 收货 - 质检退回表单内容
export const takeBaseInfoDic = [
  { key: 'provinceProductCodeReturn', title: 'M平台退货订单编号' },
  { key: 'hospitalRetreatIdReturn', title: '医院退货订单编号' },
  { key: 'provinceProductCode', title: '采购订单编号' },
  { key: 'orderStatus', title: '订单状态' },
  { key: 'createdAt', title: ' 订单提交时间' },
  { key: 'deliveryProductName', title: '配送商' },
  { key: 'productSpecCount', title: '品规数' },
  { key: 'province', title: '退货地址' },
  { key: 'userName', title: '联系人' },
  { key: 'userPhone', title: '联系电话' },
  { key: 'resone', title: '退货原因' }
]
// 收货 - 订单明细表格
export const takeDetailColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'checkReturnItemCode', label: '订单明细编号', width: 150 },
  { prop: 'hospitalProductCode', label: '配送商产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '配送商产品名称', width: 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号（或备案号）', width: 170 },
  { prop: 'price', label: '单价', width: 150 },
  { prop: 'awaitReceiveNum', label: '退货数量/单位', width: 150 },
  { prop: 'detailAmount', label: '小计金额', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 }
]
// 收货 - 待收货信息表格
export const awaitHandleColumns = [
  { width: '55', prop: 'select', type: 'selection' },
  { width: '40', prop: 'expand', fixed: 'left', type: 'expand' },
  { prop: 'itemCode', label: '配送商产品编码', minWidth: 150 },
  { prop: 'udi', label: '配送商产品名称', minWidth: 150 },
  { prop: 'specification', label: '规格', minWidth: 150 },
  { prop: 'productType', label: '型号', minWidth: 150 },
  { prop: 'manufacturer', label: '生产厂家', minWidth: 150 },
  { prop: 'registrationNumber', label: '注册证号（或备案号）', minWidth: 180 },
  { prop: 'category', label: '产品大类', minWidth: 150 },
  { prop: 'returnNum', label: '退货数量', minWidth: 150 },
  { prop: 'awaitReceiveNum', label: '已扫码/待收数量', minWidth: 150 },
  { prop: 'storageCondition', label: '储存条件', minWidth: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', minWidth: 150 },
  { prop: 'action', label: '操作', width: 100, fixed: 'right' }
]
// 去收货-表头
export const dialogProductTableColumns = [
  { prop: 'itemCode', label: '配送商产品编码', minWidth: 150 },
  { prop: 'udi', label: '配送商产品名称', minWidth: 150 },
  { prop: 'specification', label: '规格', minWidth: 150 },
  { prop: 'productType', label: '型号', minWidth: 150 },
  { prop: 'manufacturer', label: '生产厂家', minWidth: 150 },
  { prop: 'registrationNumber', label: '注册证号（或备案号）', minWidth: 250 },
  { prop: 'category', label: '产品大类', minWidth: 150 },
  { prop: 'returnNum', label: '退货数量', minWidth: 150 },
  { prop: 'awaitReceiveNum', label: '已扫码/待收数量', minWidth: 150 },
  { prop: 'storageCondition', label: '储存条件', minWidth: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', minWidth: 150 },
  { prop: 'entryNfumf', label: 'M平台产品编码', minWidth: 150 }
]
// 物品详情-表头
export const dialogGoodsTableColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'udi', label: 'UDI', minWidth: 150 },
  { prop: 'barCode', label: '主条码', minWidth: 150 },
  { prop: 'productBatch', label: '批号', minWidth: 150 },
  { prop: 'productDate', label: '生产日期', minWidth: 250 },
  { prop: 'expDate', label: '有效期', minWidth: 150 },
  { prop: 'serialNumber', label: '序列号', minWidth: 150 },
  { prop: 'num', label: '数量', minWidth: 150 },
  { prop: 'action', label: '操作', minWidth: 150 }
]
// 收货 - 待收货产品表格
export const awaitHandleItemColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'udi', label: 'UDI', minWidth: 150 },
  { prop: 'barCode', label: '主条码', minWidth: 150 },
  { prop: 'productBatch', label: '批号', minWidth: 150 },
  { prop: 'serialNumber', label: '序列号', minWidth: 150 },
  { prop: 'productDate', label: '生产日期', minWidth: 250 },
  { prop: 'expDate', label: '有效期', minWidth: 150 },
  { prop: 'num', label: '数量', minWidth: 100 },
  { prop: 'img', label: '条码图片', width: 120 }
]
